package com.zxl.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxl.common.mapper.SysMemberAddressMapper;
import com.zxl.common.model.pojo.SysMemberAddress;
import com.zxl.common.model.vo.member.ShoppingAddrListVo;
import com.zxl.common.service.SysMemberAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 收货地址 服务实现类
 * </p>
 *
 * @author zxw
 * @since 2023-03-30
 */
@Service
public class SysMemberAddressServiceImpl extends ServiceImpl<SysMemberAddressMapper, SysMemberAddress> implements SysMemberAddressService {

    @Resource
    private SysMemberAddressMapper sysMemberAddressMapper;

    @Override
    public List<ShoppingAddrListVo> listAddr(Integer memberId) {
        List<ShoppingAddrListVo> shoppingAddrListVos = sysMemberAddressMapper.listAddr(memberId);
        return shoppingAddrListVos;
    }
}
